<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>商家入驻申请</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="">
<meta name="description" content="">
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/assets/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="/assets/css/font/fontello.css" type="text/css" media="screen"/>
<link href="/assets/css/styles.css" rel="stylesheet" media="screen">
<link href="/assets/css/media-queries.css" rel="stylesheet" media="screen">
</head>
<style>
img {
	width:350px;
    height: 200px;
}
/*a  upload */
.a-upload {
    padding: 4px 10px;
    height: 20px;
    line-height: 20px;
    position: relative;
    cursor: pointer;
    color: #888;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    *display: inline;
    *zoom: 1
}

.a-upload  input {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    cursor: pointer
}

.a-upload:hover {
    color: #444;
    background: #eee;
    border-color: #ccc;
    text-decoration: none
}


.file {
    position: relative;
    display: inline-block;
    background: #D0EEFF;
    border: 1px solid #99D3F5;
    border-radius: 4px;
    padding: 4px 12px;
    overflow: hidden;
    color: #1E88C7;
    text-decoration: none;
    text-indent: 0;
    line-height: 20px;
}
.file input {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
}
.file:hover {
    background: #AADFFD;
    border-color: #78C3F3;
    color: #004974;
    text-decoration: none;
}



</style>
<body>

<header id="top">
  <div class="top-border"></div>
  <div class="container">
    <div class="row-fluid">
      <div class="span3">
	      <a href="javascript:;" onclick="history.go(-1)">
	      <img src="/assets/img/logo2.png" alt="中吉" style="margin:13px 0px 14px 0px;width: 225px;height: 40px;"/>
	      </a>
      </div>
    </div>
  </div>
</header>


<section id="contact" style="background-color:rgb(255, 255, 255);padding:0">
  <div class="container">
    <h3 class="subpage-title white" style="margin-bottom:10px;font-size:20px;"><span style="color: black;">商家入驻申请信息</span></h3>
    <div class="row-fluid">
      <div class="span12">
      <form class="form-horizontal" id="contact-form" action="/seller/application/submit" method="post" enctype="multipart/form-data">
          <input class="input-xxlarge span12" type="text" placeholder="输入您的姓名" name="name" id="name" required style="color:black;"/>
          <input class="input-xxlarge span12" type="text" placeholder="输入您的联系方式" name="phone" id="tel" required style="color:black;"/>
          <input class="input-xxlarge span12" type="text" placeholder="请输入您的身份证账号" name="Icode" id="Icode" required style="color:black;"/>
          
          <div>
	         
	            <div style="float: left;">
	            	<img id="ImgPr" width="400" height="300"/>
				</div>
				<div style="float: left;margin-top:3px;margin-left: 5px;">
					<a href="javascript:;" class="file">
					    <input type="file" name="ICardFile" id="up" required>点击这里上传文件
					</a>
				</div>	
		  </div>
		  <div style="clear: both;"></div>
          <br>
          
          <input class="input-xxlarge span12" type="email" placeholder="输入您的邮箱" name="mail" id="mail" required style="color:black;"/>
          <textarea rows="5" class="span12" placeholder="备注信息" name="nr" id="nr" style="color:black;"></textarea>
          <button type="submit" class="big-grn-btn" style="float:right; display:block;'">提交</button>
          <div class="clear"></div>
        </form>
        <div class="copyright"><span class="pull-left">&copy; @.Copyright 2016-2017 hqz </span>
          <div class="clear"></div>
          <a href="#top" class="totop" id="backtotop"></a></div>
      </div>
    </div>
  </div>
</section>
<input type="hidden" value="${message }" id="message">

<script type="text/javascript" src="/assets/js/jquery-1.8.3.min.js"></script>
    <script src="/assets/js/upload.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#up").uploadPreview({ Img: "ImgPr", Width: 200, Height: 100 });
        });
        
        
        $(function(){
        	var message = $("#message").val();
        	if(message == 1){
        		alert("提交成功！");
        	}else{
        		if(message == 2){
        			alert("您已提交了申请信息，请勿重复提交，感谢您的配合！");
        		}
        	}
        });
    </script>


</body>
</html>
